Skip to content

Conversation

@atonaamz
Copy link
Contributor

@atonaamz atonaamz commented Apr 23, 2025

Problem

When the command is long, customers need to scroll right for more contents, which is inconvenient.

Solution

Removing scroll bar and adding text wrapper for commands. Also copying all custom styles from https://github.com/atonaamz/aws-toolkit-vscode/blob/feature/agentic-chat/packages/core/resources/css/amazonq-webview.css.

Before and after the change:
Screenshot 2025-04-23 at 10 18 56 AM
Screenshot 2025-04-23 at 10 14 43 AM


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@atonaamz atonaamz requested a review from a team as a code owner April 23, 2025 17:35
@github-actions
Copy link

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

margin: 0;
padding: 0;
--mynah-font-family: var(--vscode-font-family), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move these to a dedicated css file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we can do that. Maybe it chat_webview.css?

Copy link
Contributor

@jpinkney-aws jpinkney-aws Apr 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll probably have to follow: https://github.com/aws/aws-toolkit-vscode/blob/master/packages/core/src/amazonq/webview/generators/webViewContent.ts#L73 and allowlist the css in the webview that should be a good resource though if you haven't seen it yet

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I add a TODO and come back to it later?

@github-actions
Copy link

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.
  • This pull request implements a feat or fix, so it must include a changelog entry (unless the fix is for an unreleased feature). Review the changelog guidelines.
    • Note: beta or "experiment" features that have active users should announce fixes in the changelog.
    • If this is not a feature or fix, use an appropriate type from the title guidelines. For example, telemetry-only changes should use the telemetry type.

@atonaamz atonaamz closed this Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants